package org.jeecg.modules.flower.service;

import org.jeecg.modules.flower.entity.FlowerOutorderPreinfo;
import org.jeecg.modules.flower.entity.FlowerOutorderPre;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 预出库单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
public interface IFlowerOutorderPreService extends IService<FlowerOutorderPre> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(FlowerOutorderPre flowerOutorderPre,List<FlowerOutorderPreinfo> flowerOutorderPreinfoList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(FlowerOutorderPre flowerOutorderPre,List<FlowerOutorderPreinfo> flowerOutorderPreinfoList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 基地管理员审核--占用库存
	 *
	 * @return
	 * @descriptionauthor
	 * @author gf
	 * 2023-2-15 22:41
	 * [id]
	 */
	void baseMangeSure(String id);



	/**
	 *
	 * @descriptionauthor 生成预出库台账,修改入库台账状态
	 * @author gf
	 * 2022-11-23 18:41
	 *
	 * @return
	 */
	public  Integer saveTagPreBach(  FlowerOutorderPre flowerOutorderPre );

	/**
	 *
	 * @descriptionauthor 生成预出库台账---撤销
	 * @author gf
	 * 2022-11-23 18:41
	 *
	 * @return
	 */
	public  Integer saveTagPreBachBack(  FlowerOutorderPre flowerOutorderPre );



	/**
	 *  提交审核
	 * 提交审核扣减库存 生成预出库台账,修改入库台账状态
	 * @descriptionauthor
	 * @author gf
	 * 2023-1-13 9:17
	 *
	 * @return
	 */
	public  Integer toPress( String id );

	/**
	 * 撤销提交审核
	 * 归还 库存 删除预出库台账
	 * @descriptionauthor
	 * @author gf
	 * 2023-1-13 9:17
	 *
	 * @return
	 */
	public  Integer toPressBack( String id );



}
